home *** CD-ROM | disk | FTP | other *** search
- #ifndef __tsmUtl__
- #define __tsmUtl__
- #endif
-
- // -- TSMTEsample Includes --
-
- #ifndef _SAMPLEPARTUTILS_
- #include "SamplePartUtils.h"
- #endif
-
- #ifndef _OD_SHARETSM_
- #include "ShareTSM.h"
- #endif
-
- #ifndef __TSMTE__
- #include "TSMTE.h"
- #endif
-
- // -- OpenDoc Includes --
-
- #ifndef _ODTYPES_
- #include <ODTypes.h>
- #endif
-
- #ifndef SOM_ODPart_xh
- #include <Part.xh>
- #endif
-
- #ifndef SOM_ODFacet_xh
- #include <Facet.xh>
- #endif
-
- #ifndef SOM_ODFrame_xh
- #include <Frame.xh>
- #endif
-
- #ifndef SOM_ODFrameFacetIterator_xh
- #include <FrFaItr.xh>
- #endif
-
- #ifndef SOM_ODArbitrator_xh
- #include <Arbitrat.xh>
- #endif
-
- #ifndef SOM_Module_OpenDoc_Foci_defined
- #include <Foci.xh>
- #endif
-
- #ifndef SOM_ODShape_xh
- #include <Shape.xh>
- #endif
-
- #ifndef SOM_Module_OpenDoc_StdProps_defined
- #include <StdProps.xh>
- #endif
-
- #ifndef SOM_Module_OpenDoc_StdTypes_defined
- #include <StdTypes.xh>
- #endif
-
- #ifndef SOM_Module_OpenDoc_StdDefs_defined
- #include <StdDefs.xh>
- #endif
-
- #ifndef SOM_Module_OpenDoc_Commands_defined
- #include <CmdDefs.xh>
- #endif
-
- #ifndef SOM_ODDraft_xh
- #include <Draft.xh>
- #endif
-
- #ifndef SOM_ODStorageUnit_xh
- #include <StorageU.xh>
- #endif
-
- #ifndef SOM_ODStorageUnitView_xh
- #include <SUView.xh>
- #endif
-
- #ifndef SOM_ODTransform_xh
- #include <Trnsform.xh>
- #endif
-
- #ifndef SOM_ODFocusSet_xh
- #include <FocusSet.xh>
- #endif
-
- #ifndef SOM_ODMenuBar_xh
- #include <MenuBar.xh>
- #endif
-
- #ifndef SOM_ODWindow_xh
- #include <Window.xh>
- #endif
-
- #ifndef SOM_ODWindowState_xh
- #include <WinStat.xh>
- #endif
-
- #ifndef SOM_ODCanvas_xh
- #include <Canvas.xh>
- #endif
-
- #ifndef SOM_ODSession_xh
- #include <ODSessn.xh>
- #endif
-
-
- struct tsmUtlRec {
- ODBoolean fHaveTSMTE;
- ODBoolean fHaveShareTSMlib;
- TEHandle fTEHandle;
- TSMTERecHandle fTSMTEHandle;
- TSMDocumentID fTSMDocID;
- Str255 fText;
- };
- typedef struct tsmUtlRec tsmUtlRec;
-
- void tsmIdle(Environment*, tsmUtlRec*);
- void tsmCheck(tsmUtlRec *);
- #ifndef USE_CFOCUS
- void tsmDraw(Environment*, tsmUtlRec*, ODFacet*);
- #else
- void tsmDraw(Environment*, tsmUtlRec*, ODFacet*, ODShape*);
- #endif
- void tsmOpen(Environment*, tsmUtlRec*, ODFrame*);
- void tsmClose(Environment*, tsmUtlRec*, ODFrame*);
- void tsmKey(Environment*, tsmUtlRec*, ODFrame*, ODEventData*);
- void tsmClick(Environment*, tsmUtlRec*, ODFacet*, Point*, ODEventData*);
-
- #define TEIDLETICKS 30
- #define FontSize 12
- #define FontKind 1
-